/**
 * 字符串格式化
 */
export function stringFormat(formatted, args) {
	for (let i = 0; i < args.length; i++) {
		console.log("formatted："+i)
		let regexp = new RegExp('\\{' + i + '\\}', 'gi');
		formatted = formatted.replace(regexp, args[i]);
	}
	console.log("formatted："+formatted)
	return formatted;
}